package com.qidian.blog.mapper;

import com.qidian.blog.pojo.BlogCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 郭浩
 * @Date 2022/10/10 16:47
 */
public interface BlogCategoryMapper {
    List<BlogCategory> queryAll();
    BlogCategory queryById(Long id);
    int count(BlogCategory blogCategory);
    int update(BlogCategory blogCategory);
    int save(BlogCategory blogCategory);
    List<BlogCategory> queryByPage(@Param("start") int page,@Param("limit") int limit,@Param("blogCategory") BlogCategory blogCategory);
    int delete(Long id);
}
